﻿using System.Collections.Generic;
using System.Text;

namespace SimpleOrmCFPC.Core.Query.Where
{
    public class SimpleWhereElement : IWhereElement
    {
        public string Text { get; set; }
        public List<object> Values { get; set; }

        public SimpleWhereElement(string text, List<object> values)
        {
            Text = text;
            Values = values;
        }

        public void Visit(WhereToSqlBuilder visitor, StringBuilder builder, List<object> parameters)
        {
            visitor.Visit(this, builder, parameters);
        }
    }
}